import request from '@/utils/request'

// 查询商户大转盘列表
export function listWheel(query) {
  return request({
    url: '/lottery/wheel/list',
    method: 'get',
    params: query
  })
}

// 查询商户大转盘详细
export function getWheel(id) {
  return request({
    url: '/lottery/wheel/' + id,
    method: 'get'
  })
}

// 新增商户大转盘
export function addWheel(data) {
  return request({
    url: '/lottery/wheel',
    method: 'post',
    data: data
  })
}

// 修改商户大转盘
export function updateWheel(data) {
  return request({
    url: '/lottery/wheel',
    method: 'put',
    data: data
  })
}

// 删除商户大转盘
export function delWheel(id) {
  return request({
    url: '/lottery/wheel/' + id,
    method: 'delete'
  })
}

// 导出商户大转盘
export function exportWheel(query) {
  return request({
    url: '/lottery/wheel/export',
    method: 'get',
    params: query
  })
}